package com.solomon.travel.common.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.solomon.travel.common.custom.mapper.CarCustomMapper;
import com.solomon.travel.common.model.Page;
import com.solomon.travel.common.po.Car;
import com.solomon.travel.common.service.CarService;

@Service
public class CarServiceImpl implements CarService {
	
	@Resource
	private CarCustomMapper carCustomMapper;

	@Override
	public Integer countBySerch(Car car) {
		return carCustomMapper.countBySerch(car);
	}

	@Override
	public List<Car> listBySerch(Car car, Page page) {
		return carCustomMapper.listBySerch(car, page);
	}

}
